package com.pet.article.feign;

import com.pet.model.admin.pojos.AdChannel;
import com.pet.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * 频道远程接口
 */
@FeignClient(name="pet-admin",path = "/api/v1/channel",contextId = "adChannel")
public interface AdChannelFeign {
    /**
     * 查询全部数据
     */
    @GetMapping("/list")
    public ResponseResult<List<AdChannel>> findAll();
}
